package com.woniu.woniuticket.dao;

import com.woniu.woniuticket.entity.Xiankan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author spirit
 * @since 2020-02-27
 */
public interface XiankanMapper extends BaseMapper<Xiankan> {


    List<Xiankan> selectxk(@Param("studentId")Integer studentId);

    List<Xiankan> selectxkmo(@Param("movieId")Integer movieId);

    int insertxk(@Param("movieId") Integer movieId,@Param("studentId") Integer studentId,
                 @Param("movieName") String movieName,
                 @Param("movieTrailerPath") String movieTrailerPath,
                 @Param("xkStatus")Integer xkStatus);

    int deletexk(@Param("id")Integer movieId);




}
